<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of VMT_PlotShoreline</title>
  <meta name="keywords" content="VMT_PlotShoreline">
  <meta name="description" content="Plots a shoreline map given the shoreline data structure 'Map' (see">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- menu.html trunk -->
<h1>VMT_PlotShoreline
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Plots a shoreline map given the shoreline data structure 'Map' (see</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function VMT_PlotShoreline(Map) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Plots a shoreline map given the shoreline data structure 'Map' (see
 VMT_LoadMap.m) on the current map

 P.R. Jackson, 12-9-08
 Last Modified: Frank L. Engel, 3/13/2013</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="VMT.html" class="code" title="function varargout = VMT(varargin)">VMT</a>	--- THE VELOCITY MAPPING TOOLBOX ---</li><li><a href="VMT_PlotPlanViewQuivers.html" class="code" title="function [PVdata,fig_planview_handle,log_text] = VMT_PlotPlanViewQuivers(z,A,V,Map,drng,ascale,QuiverSpacing,pvsmwin,pshore,plot_english,varargin)">VMT_PlotPlanViewQuivers</a>	This function plots a plan view of the measurement region with a vector</li></ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function VMT_PlotShoreline(Map)</a>
0002 <span class="comment">% Plots a shoreline map given the shoreline data structure 'Map' (see</span>
0003 <span class="comment">% VMT_LoadMap.m) on the current map</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% P.R. Jackson, 12-9-08</span>
0006 <span class="comment">% Last Modified: Frank L. Engel, 3/13/2013</span>
0007 
0008 <span class="keyword">if</span> isempty(Map) <span class="comment">% User hit cancel when selecting shoreline file</span>
0009     <span class="keyword">return</span>
0010 <span class="keyword">end</span>
0011 
0012 <span class="comment">% See if PLOT 1 exists already, if not make it</span>
0013 fig_planview_handle = findobj(0,<span class="string">'name'</span>,<span class="string">'Plan View Map'</span>);
0014 
0015 <span class="keyword">if</span> ~isempty(fig_planview_handle) &amp;&amp;  ishandle(fig_planview_handle)
0016     figure(fig_planview_handle);
0017 <span class="keyword">else</span>
0018     fig_planview_handle = figure(<span class="string">'name'</span>,<span class="string">'Plan View Map'</span>); clf
0019     <span class="comment">%set(gca,'DataAspectRatio',[1 1 1],'PlotBoxAspectRatio',[1 1 1])</span>
0020 <span class="keyword">end</span>
0021 
0022 brks = find(Map.UTMe == -9999);
0023 
0024 <span class="keyword">for</span> i = 1:length(brks)+1
0025     <span class="keyword">if</span> i == 1
0026         ll = 1;
0027         <span class="keyword">if</span> ~isempty(brks)
0028             ul = brks(i)-1;
0029         <span class="keyword">else</span>
0030             ul = length(Map.UTMe);
0031         <span class="keyword">end</span>
0032         indx =ll:ul;
0033     <span class="keyword">elseif</span> i == length(brks)+1
0034         ll = brks(i-1)+1;
0035         ul = length(Map.UTMe);
0036         indx =ll:ul;
0037     <span class="keyword">elseif</span> i &gt; 1 &amp; i &lt; length(brks)+1
0038         ll = brks(i-1)+1;
0039         ul = brks(i)-1;
0040         indx =ll:ul;
0041     <span class="keyword">end</span>
0042     figure(fig_planview_handle); hold on
0043     plot(Map.UTMe(indx),Map.UTMn(indx),<span class="string">'Color'</span>, [.3 .3 .3],<span class="string">'LineWidth'</span>,2); hold on  
0044     <span class="comment">%patch(Map.UTMe(indx),Map.UTMn(indx),'k','EdgeColor','none'); hold on</span>
0045     
0046 <span class="keyword">end</span>
0047 <span class="comment">%xlabel('UTM Easting (m)')</span>
0048 <span class="comment">%ylabel('UTM Northing (m)')</span>
0049 set(gca,<span class="string">'DataAspectRatio'</span>,[1 1 1],<span class="string">'PlotBoxAspectRatio'</span>,[1 1 1])</pre></div>
<hr><address>Generated on Tue 30-Apr-2013 10:18:12 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>